Skip to content

MAINT: convert particle units with hepunits - #396

Draft
Flomber wants to merge 3 commits into
mainfrom
hepunits
Draft

Flomber wants to merge 3 commits into
mainfrom
hepunits

Conversation

@Flomber

@Flomber Flomber commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14

🔨 Maintenance

  • The scikit-hep adapter converts masses and widths from the particle package with hepunits (value / GeV) instead of a hard-coded division by 1e3, so the unit conversion is self-documenting. hepunits>=2.4.7 is now an explicit dependency, though particle already pulled it in.

📝 Documentation

  • The Particle docstring now states that mass and width are in GeV and shows how to convert values from other units with hepunits.

Squash commit messages

* DOC: state that `Particle` mass and width are in GeV

@Flomber Flomber changed the title FEAT: add hepunits as a dependency MAINT: convert particle units with hepunits Nov 17, 2026
@Flomber Flomber added 📝 Docs Improvements or additions to documentation 🔨 Maintenance Maintenance and upkeep improvements labels Nov 17, 2026
@Flomber
Flomber requested a review from redeboer November 17, 2026 13:42
@Flomber Flomber self-assigned this Nov 17, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📝 Docs Improvements or additions to documentation 🔨 Maintenance Maintenance and upkeep improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use hepunits package for mass and width

1 participant